﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRMS_Model;
using HRMS.Models;

namespace HRMS.Models
{
    public class JobSkills
    {
        public static void AddJobSkills(JobSkill jobskill)
        {
            using (var jsEntity = new HRMSEntities())
            {
                jsEntity.JobSkills.AddObject(jobskill);
                jsEntity.SaveChanges();
            }
        }
        public static List<JobSkill> GetJobSkills()
        {
            using (var jsEntity = new HRMSEntities())
            {
                return jsEntity.JobSkills.ToList();
            }
        }
    }
}